<?php

$this->Html->script('controllers/Lines/admin.js?1', array('block' => 'scriptBottom'));
$appBosch->crud = $this->TioCachas->urlsCRUD($appBosch->areaId);
$appBosch->urlAreas = $this->Html->url(array('action'=>'admin'));
$appBosch->urlTeams = $this->Html->url(array('controller' => 'Teams', 'action'=>'admin'));
$appBosch->urlWorkstations = $this->Html->url(array('controller' => 'Workstations', 'action' => 'admin'));
$appBosch->urlCategorizations = $this->Html->url(array('controller' => 'Categorizations', 'action' => 'admin'));
$this->TioCachas->addWarning();
$this->TioCachas->back(array('controller'=>'Areas','action'=>'admin', $appBosch->moeId));
?>
<script type="text/x-kendo-template" id="templateToolbar">
    <div class="toolbar">
        <span class="pull-left">
            <a class="k-button k-button-icontext k-grid-add" href="">
            <span class="k-icon k-add"></span>
                <?php echo __( 'Agregar línea' ); ?>
            </a>
        </span>
        <span class="pull-left">
            <a class="k-button k-button-icontext k-grid-excel" href="">
                <span class="k-icon k-i-excel"></span>
                <?php echo __('Exportar a Excel'); ?>
            </a>
        </span>
        <span class="pull-left">
            <a class="k-button k-button-icontext k-grid-pdf" href="">
                <span class="k-icon k-i-pdf"></span>
                <?php echo __('Exportar a PDF'); ?>
            </a>
        </span>
    </div>
</script>
<div id="grid"></div>
<?php $this->start('jsVars'); ?>
<script type="text/javascript">
    var appBosch = <?php echo json_encode($appBosch); ?>;
</script>
<?php $this->end();